<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseReceiptItemBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseReceiptItemBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Pc Purchase Receipt Item"/>

	<ui:define name="header">
		Pc Purchase Receipt Item
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty pcPurchaseReceiptItemBean.id}">
				Edit existing Pc Purchase Receipt Item
			</c:when>
			<c:otherwise>
				Create a new Pc Purchase Receipt Item
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemPcPurchaseReceipt" value="Pc Purchase Receipt:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{pcPurchaseReceiptBean.converter}" id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemPcPurchaseReceipt" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.pcPurchaseReceipt}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseReceiptBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemPcPurchaseReceipt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemMmItem" value="Mm Item:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmItemBean.converter}" id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemMmItem" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.mmItem}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemMmItem" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemSysUom" value="Sys Uom:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysUomBean.converter}" id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemSysUom" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.sysUom}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysUomBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemSysUom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptSupplierItemCode" value="Rcpt Supplier Item Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptSupplierItemCode" maxLength="50" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptSupplierItemCode}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptSupplierItemCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptItemCode" value="Rcpt Item Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptItemCode" maxLength="50" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptItemCode}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptItemCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptItemDescr" value="Rcpt Item Descr:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptItemDescr" maxLength="300" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptItemDescr}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptItemDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptQty" value="Rcpt Qty:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptQty" required="true" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptQty}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptQty" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptPpu" value="Rcpt Ppu:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptPpu" required="true" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptPpu}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptPpu" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptStatusIncVat" value="Rcpt Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptStatusIncVat" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptStatusIncVat}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptVatPercVal" value="Rcpt Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptVatPercVal" required="true" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptVatPercVal}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptVatVal" value="Rcpt Vat Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptVatVal" required="true" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptVatVal}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptVatVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptTotalPriceExcVat" value="Rcpt Total Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptTotalPriceExcVat" required="true" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptTotalPriceExcVat}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptTotalPrice" value="Rcpt Total Price:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptTotalPrice" value="#{pcPurchaseReceiptItemBean.pcPurchaseReceiptItem.rcptTotalPrice}"/>
					<h:message for="pcPurchaseReceiptItemBeanPcPurchaseReceiptItemRcptTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{pcPurchaseReceiptItemBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty pcPurchaseReceiptItemBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{pcPurchaseReceiptItemBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{pcPurchaseReceiptItemBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>